<div class='headerProvider'>
	<div class='proInfo'>Provider Info</div>
	<div class='proName'>{{ provider.provname }}</div>
</div>

<div>
	<span><img class='address' src='web-sdk/assets/img/address.png'></span>{{ provider.city}}, {{ provider.state}} {{ provider.zip }}<br />

	<span><img class='at' src='web-sdk/assets/img/at.jpg'></span>DUNS NUMBER:{{ provider.duns }}<br />
	<hr />

Legal Business Name: {{ provider.lbn }} <br />
Ownership Type: {{ provider.ownership }} <br />
Provider Type: {{ provider.certification }} <br />
Number of Certified Beds: {{ provider.bedcert }} <br />
Number of Residents in Certified Beds : {{ provider.restot }} <br />
Date First Approved to Provide Medicare and Medicaid services: {{ provider.participation_date }} <br />
Provider Changed Ownership in Last 12 Months: {{ provider.chow_last_12mos }} <br />

<h3>D&B Assessment:</h3>
<ul>
  <li> <strong>Fraud Risk:</strong> <span class="{{ fraud_score }}">{{ fraud_score }} ({{fraud_score_desc}} </span>)</li>
	<li> <strong>Viability Rating:</strong> {{ viability_rating }}/9</li>
	<li> <strong>Credit Score:</strong> {{ provider_assessment.Assessment.CommercialCreditScore.0.RawScore }} ({{ provider_assessment.Assessment.CommercialCreditScore.0.NationalPercentile }}% national percentile)</li>
	<li ng-repeat="ssummary in provider_assessment.Assessment.CommercialCreditScore.0.ScoreCommentary">
		*  {{ ssummary.CommentaryText.$ }}
	</li>
	<li> <strong>Risk Incidence:</strong> {{ provider_assessment.Assessment.CommercialCreditScore.0.RiskIncidenceMinimumRangeRawScore }} - {{ provider_assessment.Assessment.CommercialCreditScore.0.RiskIncidenceMaximumRangeRawScore }} ({{ provider_assessment.Assessment.CommercialCreditScore.0.RiskIncidencePercentage | number:2 }}% percentile)</li>
	<li ng-repeat="asummary in provider_assessment.Assessment.AssessmentSummaryText">
		* {{ asummary }}
	</li>
</ul>

<h3>Rating</h3>
Overall Rating: {{ provider.overall_rating }} <span ng-show="provider.overall_rating_fn">[{{ provider.overall_rating_fn }}] </span><br />
Health Inspection Rating: {{ provider.survey_rating }} <span ng-show="provider.survey_rating_fn">[{{ provider.survey_rating_fn }}]</span> <br />
Quality Rating: {{ provider.quality_rating}} <span ng-show="provider.quality_rating_fn">[{{ provider.quality_rating_fn }}]</span> <br />
Staffing Rating: {{ provider.staffing_rating}} <span ng-show="provider.staffing_rating_fn">[{{ provider.staffing_rating_fn }}]</span> <br />
RN Staff Rating: {{ provider.rn_staffing_rating}} <span ng-show="provider.rn_staffing_rating_fn">[{{ provider.rn_staffing_rating_fn }}]</span> <br />
<hr />

	<h3>Fines</h3>
	Number Of Fines: {{ provider.fine_cnt }}<br />
	Total Amount of Fines: {{ provider.fine_tot | currency}}<br />

	<ul>
	     <li ng-repeat="penalty in provider.penalties">
	         [{{$index + 1}}] {{ penalty.pnlty_date }} {{ penalty.pnlty_type }}: {{ penalty.fine_amt | currency }} (Paid: {{ penalty.payden_strt_dt }})
	     </li>
	</ul>
	<hr />

	<h3>Quality</h3>
	Avg: {{ provider.avgscore | number:2}} <br />
	{{ provider.q1_quarter }}: {{ provider.q1score | number:2 }} <br />
	{{ provider.q2_quarter }}: {{ provider.q2score | number:2 }} <br />
	{{ provider.q3_quarter }}: {{ provider.q3score | number:2 }} <br />
	<hr />

	<h3>Staffing Hours Per Resident per Day:</h3>
	<table>
		<tr>
			<td>Type</td>
			<td>Reported</td>
			<td>Expected</td>
			<td>Adjusted</td>
		<tr>
		<tr>
			<td>CNA</td>
			<td>{{ provider.aidhrd | number:2 }}</td>
			<td>{{ provider.exp_aide | number:2 }}</td>
			<td>{{ provider.adj_aide | number:2 }}</td>
		</tr>
		<tr>
			<td>LPN</td>
			<td>{{ provider.vochrd | number:2 }}</td>
			<td>{{ provider.exp_lpn | number:2 }}</td>
			<td>{{ provider.adj_lpn | number:2 }}</td>
		</tr>
		<tr>
			<td>RN</td>
			<td>{{ provider.rnhrd | number:2 }}</td>
			<td>{{ provider.exp_rn | number:2 }}</td>
			<td>{{ provider.adj_rn | number:2 }}</td>
		</tr>
	</table>
	<hr />

</div>
<a class="btn btn-default" style='position: absolute; top: 65px; right: 15px;' href="#/providers">Back</a>
